function [ numPastel ] = CountPastelPixel( image, mask, minSat, maxSat, minVal )
%CountPastelPixel: Counts the pixel that are pastel colors concerning the
%given saturation values

hsv = rgb2hsv(image);
s = hsv(:,:,2);
v = hsv(:,:,3);
s(mask == 1) = 0;

sumPix = sum((mask(:) == 0));

pastel = zeros(size(s));
pastel(s > minSat & s < maxSat & v > minVal) = 1;

numPastel = sum(pastel(:)) / sumPix;

end

